/*
 * @Author: 可以清心
 * @Description: 
 * @Date: 2022-11-28 09:14:26
 * @LastEditTime: 2023-03-08 19:04:28
 */
export default {
    setModule: function(data){
        let result = {
            adminModule: {},
            authModule: {},
            fontModule: {}
        }

        result.authModule = {
            token: data.token,
            userInfo: {
                ...data.user,
                tenant: data.userDefaultTenant,
                department: data.userDepartment
            }
        }

        localStorage.setItem(`__vuex__${data.apaasApplications.id}__local`, JSON.stringify(result));
    }
}